<script lang="ts" setup name="PlayGround">
import Confirm from '@/components/confirm'

const show = () => {
  Confirm({
    title: '温馨提示',
    text: '你确定要删除'
  })
    .then(() => {
      console.log('点击了确定')
    })
    .catch(() => {
      console.log('点击了取消')
    })
}
</script>

<template>
  <button @click="show">显示</button>
</template>

<style scoped lang="less"></style>
<style scoped lang="less"></style>